# SConstruct for BeCJKZiku

env = Environment()

# 设置编译器和标准
env.Replace(CXX = 'g++')
env.Append(CCFLAGS = ['-Wall', '-O2'])
env.Append(CXXFLAGS = ['-std=c++11'])

# Haiku特定的库
env.Append(LIBS = ['be', 'translation'])

# 源文件
src_files = Glob('src/*.cpp')

# 构建目标
program = env.Program('build/BeCJKZiku', src_files)

# 默认目标
Default(program)

# 创建build目录
env.Execute(Mkdir('build'))